import http from "@/utils/request";

export function hrInfoQuery(hrId) {
    return http({
        url: '/recruit/getHrInfo',
        method: 'get',
        params: { hrId }
    })
}

export function recruitListQuery(hrVO) {
    return http({
        url: '/recruit/recruitList',
        method: 'get',
        params: hrVO
    })
}

export function jobTypeQuery() {
    return http({
        url: '/recruit/jobType',
        method: 'get'
    })
}

export function specificJobQuery(typeId) {
    return http({
        url: '/recruit/specificJob',
        method: 'get',
        params: { typeId }
    })
}

export function addRecruitQuery(formData) {
    return http({
        url: '/recruit/addRecruit',
        method: 'post',
        data: formData
    })
}

export function updateRecruitQuery(updateData) {
    return http({
        url: '/recruit/updateRecruit',
        method: 'put',
        data: updateData
    })
}

export function deleteRecruitQuery(recruitId) {
    return http({
        url: `/recruit/deleteRecruit/${recruitId}`,
        method: 'delete',
    })
}

export function identityCheckQuery(hrInfo) {
    return http({
        url: '/recruit/identityCheck',
        method: 'post',
        data: hrInfo
    })
}